/**
 * @(#)UserAgentDAOImpl.java 2017年4月6日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IUserAgentDAO;
import org.jsbd.boss.domian.channel.UserAgent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

/**
 * 用户
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("userAgentDao")
public class UserAgentDAOImpl extends CrackBaseDao implements IUserAgentDAO, IBatchExecutor<UserAgent> {
	public static final Logger LOGGER = LoggerFactory.getLogger(UserAgentDAOImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IUserAgentDAO#selectUserAgentList(java.lang.Integer,
	 * java.lang.Integer)
	 */
	@Override
	public List<UserAgent> selectUserAgentList(Integer length) {
		return super.queryForList("qy_useragent.SELECT_USERAGENT_LIST", length);
	}

	/* (non-Javadoc)
	 * @see edu.hziee.common.queue.IBatchExecutor#execute(java.util.List)
	 */
	@Override
	public void execute(List<UserAgent> records) {
		super.batchInsert("qy_useragent.INSERT_USERAGENT", records);
	}

}
